pygrub: factor generic Grub functionality into GrubConf base classes
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 23 Nov 2009 08:05:49 +0000 (08:05 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 23 Nov 2009 08:05:49 +0000 (08:05 +0000)
commit1142ec6cf0aabe8a3f95b4ac3f8105b21c302020
treed41a9cbdc41667d6b154dd2278ee10b8d706ef74
parenta9c7cc22db95bde4e7fe5aafbca127b16903eb18
pygrub: factor generic Grub functionality into GrubConf base classes
and inherit from these classes to implement Grub-legacy functionality.

Use a tuple of (parser-object,configuration-file) in pygrub to allow
for multiple parsers.

Makes way for grub2 support.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
tools/pygrub/src/GrubConf.py
tools/pygrub/src/pygrub